<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var arr = [9, 1, 11, 10];
        // var max = arr[0];
        // for (var i = 0; i < arr.length; i++) {
        //     if (arr[i] > max) {
        //         max = arr[i];
        //     }
        // }
        // console.log(max);
        // var arr = ["asd", "sdfsd", "asfas"]
        // arr[3] = "xvx";
        // arr.length = 4;
        // arr[1] = "bbb"
        // var str = "";
        // for (var i = 0; i < arr.length; i++) {
        //     str += arr[i] + "\t";
        // }
        // console.log(str);
        var arr = [];
        for (var i = 1; i < 11; i++) {
            arr[i - 1] = i;
            console.log(arr[i - 1]);
        }
    </script>
</head>

<body>

</body>

</html>